Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions That Modify Movie Properties / Working With Movie Spatial Characteristics


GetMovieDisplayBoundsRgn

The GetMovieDisplayBoundsRgn function allows your application to determine a movie's display boundary region. The display boundary region encloses all of a movie's enabled tracks after the track matrix, track clip, movie matrix, and movie clip have been applied to all of the movie's tracks. This region is in the display coordinate system of the movie's graphics world. The movie's boundary rectangle encloses this region. For more on boundary regions and matrices for movies and tracks, see "Spatial Properties," which begins on page 2-15.

pascal RgnHandle GetMovieDisplayBoundsRgn (Movie theMovie);
theMovie
Specifies the movie for this operation. Your application obtains this movie identifier from such functions as NewMovie, NewMovieFromFile, and NewMovieFromHandle (described on page 2-80, page 2-76, and page 2-78, respectively).
DESCRIPTION
The Movie Toolbox derives the display boundary region only from enabled tracks, and only from those tracks that are used in the current display mode (that is, movie, poster, or preview). The display boundary region is valid for the current movie time.

The GetMovieDisplayBoundsRgn function allocates the region and returns a handle to the region. Your application must dispose of this handle when you are done with it. If the movie does not have a spatial representation at the current movie time, the function returns an empty region. If the function could not satisfy your request, it sets the returned handle to nil.

ERROR CODES
invalidMovie-2010This movie is corrupted or invalid
Memory Manager errors

SEE ALSO
If you want to determine the boundary region that applies to a time segment of a movie, you can use the GetMovieSegmentDisplayBoundsRegion function, which is described in the next section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996